//
//  SCProductInfo.m
//
//
//  Created by mac on 15/9/28.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import "SCProductInfo.h"
<<<<<<< HEAD
#import "MJExtension.h"
=======
>>>>>>> dd1aac4040986135177ad18eb7781566439f59ee


@implementation SCProductInfo

<<<<<<< HEAD
MJCodingImplementation

=======
>>>>>>> dd1aac4040986135177ad18eb7781566439f59ee
-(instancetype)initWithDict:(NSDictionary *)dict

{
    
    if (self = [super init])
        
    {
<<<<<<< HEAD
        NSString *str1 = dict[@"picurl"];
        NSString *str2 = dict[@"picprex"][@"s"];
        NSString *str3 = [str2 stringByAppendingString:str1];
        self.shopPicUrl = str3;
        
        self.shopCartName = dict[@"title"];
        
        self.shopCartType = dict[@"chima"];
        
        self.shopcartColor = dict[@"yanse"];
        
        self.shopcartPrice = dict[@"jiage"];
        
        self.shopcartCount = dict[@"nums"];
        
        self.shopcartIp = dict[@"id"];
        
        self.selectState = [dict[@"selectState"] boolValue];
        
        self.rate = dict[@"feilv"];
=======
        
        self.shopPicUrl = dict[@"shopPicUrl"];
        
        self.shopCartName = dict[@"shopCartName"];
        
        self.shopCartType = dict[@"shopCartType"];
        
        self.shopcartColor = dict[@"shopcartColor"];
        
        self.shopcartPrice = dict[@"shopcartPrice"];
        
        self.shopcartCount = dict[@"shopcartCount"];
        
        self.shopcartIp = dict[@"shopcartIp"];
        
        self.selectState = [dict[@"selectState"] boolValue];
>>>>>>> dd1aac4040986135177ad18eb7781566439f59ee
        
    }
    
    return  self;
    
}

@end
